package com.scm.biz.service;

import java.util.List;

import com.scm.biz.bean.SysRole;
import com.scm.biz.query.SysRoleQuery;

public interface SysRoleService {
	public List<SysRole> selectList(SysRoleQuery sysRoleQuery);
	public SysRole selectById(Integer id);
	public void deleteById(Integer id);
	public SysRole selectByCode(String resourceCode);
	/**
	 * 根据用户ID，查询用户所有角色
	 * @param userId
	 * @return
	 */
	public List<SysRole> selectListByUserId(int userId);
}